package Pokero;

import java.util.Random;

public class Bot extends Player {
       
	private static int Gen; //zmienne generowane w logice botow     
	private static int Gen1;
        
	public Bot( String imie, int money) {
        super(imie, money);
    }


	public static void Wymiana(int BotNum) {
		Random Generator = new  Random();
		Gen1 = Generator.nextInt(3);
		
		for(int j=0; j<Gen1; j++) {     //zalosnie losowa wymiana kart przez CPU
			Gen = Generator.nextInt(4);
			PokerFrame.CPUPlayers[BotNum].Hand[Gen] = PokerFrame.wymien();
		}
		
	}
	
	public static void Auction(int Gen, int PlayerNumber) {
		if(Gen == 1) {
			PokerFrame.CPUPlayers[PlayerNumber].money = PokerFrame.CPUPlayers[PlayerNumber].money - 5;
			PokerFrame.pula += 5;
			PokerFrame.bpula.setText("Pula wynosi: " + Integer.toString(PokerFrame.pula)); //update puli
		}
		
	}

}
